package com.koron.order.common.service;

import com.koron.common.core.business.common.service.CommonService;
import com.koron.order.common.bean.po.OrderInstructionBean;
import org.koron.ebs.mybatis.SessionFactory;

import java.util.List;

/**
 * (OrderInstruction)表服务接口
 *
 * @author zhouj
 * @since 2021-09-14 14:41:22
 */
public interface OrderInstructionService extends CommonService {

    int insert(SessionFactory factory, OrderInstructionBean orderInstruction);

    int update(SessionFactory factory, OrderInstructionBean orderInstruction);

    int deleteById(SessionFactory factory, String id);

    int deleteByBizId(SessionFactory factory, String bizId, String orderType);

    OrderInstructionBean queryById(SessionFactory factory, String id);

    List<OrderInstructionBean> queryList(SessionFactory factory, OrderInstructionBean orderInstruction);

    int insertBatch(SessionFactory factory, List<OrderInstructionBean> orderInstructionBeanList);

    List<OrderInstructionBean> queryByBizId(SessionFactory factory, String bizId);
}
